<?php
class ServiceOrderRowRepaire extends AppModel {
	var $belongsTo = array( 'ServiceOrderRow', 'Repaire');
	var $hasMany =  array('ServiceOrderRowRepaire' =>
			array(
					'finderQuery' => 'SELECT * FROM service_order_row_repaires AS ServiceOrderRowRepaire JOIN repaires ON repaires.id = ServiceOrderRowRepaire.repaire_id WHERE ServiceOrderRowRepaire.service_order_row_id  IN ({$__cakeID__$}) ORDER BY ServiceOrderRowRepaire.id DESC'
					)
			);
    
}

?>